//
//  DWDraggingView.h
//  DWDraggingView
//
//  Created by Devwan on 2017/4/12.
//  Copyright © 2017年 Devwan. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kSCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define kSCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height


/**
 移动后的最终位置

 - DWPositionTypeLeft: 在左边
 - DWPositionTypeMiddle: 在中间
 - DWPositionTypeRight: 在右边
 */
typedef NS_ENUM (NSInteger, DWPositionType) {
    DWPositionTypeLeft = 1,
    DWPositionTypeMiddle = 2,
    DWPositionTypeRight = 3
};

@protocol DWDraggingViewDelegate <NSObject>

@required
- (void)didTouchesMovedWithPosition:(DWPositionType)positionType;

@end

@interface DWDraggingView : UIView
{
    CGPoint beginPoint;
}

@property (nonatomic, weak) id<DWDraggingViewDelegate> delegate;

@end
